and fix an instance.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
halt='add "const" to the above declarations' \
$(_sc_search_regexp)
+sc_prohibit_gs_strfreev:
+ @prohibit='\bgs_strfreev\b' \
+ halt="do not use gs_strfreev; use g_autoptr instead" \
+ $(_sc_search_regexp)
+
sc_prohibit_gs_unref:
@prohibit='\bgs_unref_(keyfile|variant*|ptrarray|hashtable|bytes|object)\b' \
halt="do not use gs_unref_*; use g_autoptr instead" \
char **out_from,
char **out_to)
{
- gs_strfreev char **parts = g_strsplit (delta_name, "-", 2);
+ g_auto(GStrv) parts = g_strsplit (delta_name, "-", 2);
*out_from = *out_to = NULL;
if (parts[0] && parts[1])